import { get, post, put } from '@/js/api/dataSource'
export default {
	auth: {
		// 获取验证码
		getKaptcha () {
			return get({ url: '/archive/kaptcha/getKaptcha' })
		},
		// 登录
		loginIn () {
			return post({ url: '/archive/user/login', autoSuccessMsg: true, autoErrorMsg: true, responseComplete: true })
		},
		refreshToken () {
			return put({ url: '/archive/token/refresh' })
		},
		// 登出
		loginOut () {
			return post({ url: '/archive/user/outLogin' })
		}
	}
}
